local skill = fk.CreateSkill{
  name = "action__liangleichadao_ol_skill",
}

Fk:loadTranslationTable{
  ["action__liangleichadao_ol"] = "两肋插刀",
  ["action__liangleichadao_ol_skill"] = "两肋插刀",
  [":action__liangleichadao_ol"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：一名其他角色 <br /><b>效果</b>：目标角色获得两张伤害牌。",
  ["#action__liangleichadao_ol_skill"] = "令一名其他角色获得两张伤害牌。",
}


skill:addEffect("cardskill", {
  mute = true,
  name = "action__liangleichadao_ol",
  prompt = "#action__liangleichadao_ol_skill",
  target_num = 1,
  mod_target_filter = function(self, player, to_select, selected, card)
    return to_select ~= player
  end,
  target_filter = Util.CardTargetFilter,
  on_effect = function(self, room, effect)
    local cards = {}
    for i = 1, #room.draw_pile, 1 do
      local card = Fk:getCardById(room.draw_pile[i])
      if card.is_damage_card then
        table.insertIfNeed(cards, card)
      end
    end
    local toget_cards = {}
    if #cards > 0 then
      local a = math.random(1, #cards)
      local b
      if #cards > 1 then
        repeat
          b = math.random(1, #cards)
        until b ~= a
        table.insert(toget_cards, cards[b])
      end
      table.insert(toget_cards, cards[a])
      room:obtainCard(effect.to, toget_cards, false, fk.ReasonPrey, nil, skill.name)
    end
  end,
})


return skill